package cn.webrx;

import java.io.File;
import java.io.FileInputStream;

public class Ex4 {
    public static void main(String[] args) {
        //将文件分割10块 gradle-7.5-bin.zip
        String src = "d:\\gradle-7.5-bin.zip";
        File file = new File(src);
        if(file.exists()){
            System.out.println(file.isFile());
            System.out.println(file.length());
        }

        long size = file.length();

        try(var fis = new FileInputStream(src)){
            System.out.println(fis.available());
            System.out.println(fis.readAllBytes().length);
        }catch(Exception e){

        }

    }
}
